<template>
  <div>
    <el-card>
      <div class="box">
        <img :src="userStore.avatar" alt="" class="picture" />
        <div class="userInfo">
          <h3 class="welcome">{{ getTime() }}好呀~{{ userStore.username }}</h3>
          <h2 class="brand">硅谷甄选运营平台</h2>
        </div>
      </div>
    </el-card>
    <div class="bottoms">
      <!-- <img :src="userStore.avatar" alt=""> -->
      <SvgIcon name="welcome" width="600px" height="300px"></SvgIcon>
    </div>
  </div>
</template>

<script setup lang="ts">
defineOptions({
  name: 'Home',
})
// 引入用户信息仓库
import userMessageStore from '@/store/modules/user'
let userStore = userMessageStore()
// 引入时间端函数
import { getTime } from '@/utils/time'
</script>

<style scoped lang="scss">
.box {
  display: flex;
  height: 150px;
  align-items: center;
}
.userInfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-left: 20px;
}
.picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.welcome {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 15px;
}
.bottoms {
  margin-top: 100px;
  width: 100%;
  display: flex;
  justify-content: center;
}
</style>
